package com.cac.demo.newCode.cemop.enums;

public enum CemopEnum {
    RETURN_ORDER("0","CEMOP系统退库单接收或驳回通知101库存"),
    OUTBOUND("1","CEMOP系统出库台账通知101库存"),
    INITIATE_COORDINATION("2","101库存发起协调通知CEMOP系统"),
    ZERO_APPLICATION("3","协调归零申请通知101库存"),
    ZERO_COORDINATION("4","101库存协调归零通知CEMOP系统"),

    SCAN_TRANSFER("5","CEMOP系统至101库存"),
    AO_SUPPORTING_LEDGER("6","101库存AO配套台账通知CEMOP系统"),
    CANCEL_AO_SUPPORTING_LEDGER("7","101库存AO取消配套台账通知CEMOP系统"),
    AO_MATCHING_OUTBOUND("8","101库存AO配套出库通知CEMOP系统"),
    AO_REVOKES_OUTBOUND("9","101库存AO撤销出库通知CEMOP系统"),
    AO_SUPPORTING_TRANSFER("10","101库存AO配套移交通知CEMOP系统"),
    ALLOCATE_LEDGER_INFORMATION("11","CEMOP系统分配台账信息通知101库存"),
    CANCEL_LEDGER_ALLOCATION("12","CEMOP系统取消台账分配通知101库存"),
    LEDGER_OUTBOUND("13","CEMOP系统台账出库通知101库存"),
    CANCEL_LEDGER_OUTBOUND("14","CEMOP系统取消台账出库通知101库存"),
    SECOND_MATCH_AND_RETURN("15","CEMOP系统现场正常退库与二次配套通知101库存"),
    NEW_CEFCD_ECD("16","CEMOP系统接收拆分的合格证通知101库存"),
    STOCK_CONFIRMATION("17","101库存确认处理通知CEMOP系统"),
    CANCEL_DELIVER("18","CEMOP与SERP系统删除交接单通知101库存"),
    SORT_BACKR_ESULT_TXT("19","Cemop接口调用结果反馈TXT");

    private String  code;
    private String  value;
    CemopEnum(String code,String value){
        this.code = code;
        this.value = value;
    }

    public static String getValueByCode(String type) {
        for (CemopEnum cemopEnum : CemopEnum.values()) {
            if (cemopEnum.getCode().equals(type)) {
                return cemopEnum.getValue();
            }
        }
        return "";
    }

    public String getCode(){
        return code;
    }
    public String getValue(){
        return value;
    }
}
